<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>导出用户信息excel</title>

<style>
input.textbox {
width: 135px;
}
table.altrowstable {
    font-family: verdana,arial,sans-serif;
    font-size:11px;
    color:#333333;
    border-width: 1px;
    border-color: #a9c6c9;
    border-collapse: collapse;
}
table.altrowstable th {
     
    padding: 8px;
     
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #91c9e2;
    background-color:#c4e6f7;
}
table.altrowstable td{
     
    padding: 8px;
    border:none;
}
</style>

</head>
<body>      
    	<div id="south_east_index"  class="index_panel2_3"  >
    	  <div class="form-group col-sm-6">
              <button type="button" onclick="excel()">导出EXCEL</button>
          </div>
	      <table class="altrowstable" id="alternatecolor"  style="width:600px;" align="center" >
				<tr  align="center">
				    <th>用户名称</th><th>用户密码</th><th>用户年龄</th>
				</tr>
			<c:forEach var="user" items="${users}" varStatus="star">
				<tr class="evenrowcolor"  align="center">
				    <td>${user.username}</td><td>${user.password}</td><td>${user.age}</td>
				</tr>
			</c:forEach>	

			</table>    	    
		</div> 
<script type="text/javascript">

	function excel(){
		location.href="exportExcel.jspx";
	}
</script>
		     
</body>
</html>